import { post } from '@/utils/request'

// 支持上传图片
export const upload = (file: File) => {
  return post(
    '/upload/qn',
    {
      file,
    },
    {
      'Content-Type': 'multipart/form-data',
    },
  )
}
